<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
| 	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There are two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['scaffolding_trigger'] = 'scaffolding';
|
| This route lets you set a "secret" word that will trigger the
| scaffolding feature for added security. Note: Scaffolding must be
| enabled in the controller in which you intend to use it.   The reserved 
| routes must come before any wildcard or regular expression routes.
|
 */

$route['default_controller'] = "landing";
$route['scaffolding_trigger'] = "";
/*
 * redirection untuk halaman directory, karena gerald mintanya agak belibet
 * penjelasan
 * 1. karena nggak bisa membuat controller dengan nama directory, maka saya buat
 * 	directory_guest dan di alihkan dengan mengubah variable $route di sini
 * 2. untuk akomodasi url dengan judul directory/[nama company]/[judul news] maka struktur dibuat 
 * 	dari yang paling kecil efeknya (hanya pengalihan controller), hingga ke yang paling luas
 * 	yang menangkap semua url dengan format directory/[nama company] diletakkan 
 * 	paling bawah
 * 3. untuk penjelasan perbaris lihat di baris tersebut
 *
 * documentation made by ibnu, confused? get in touch with him on http://twitter.com/ibnutri
 *
 */
 
$route['directory'] = "directory_guest";
$route['directory/advertise'] = "directory_guest/signup"; //  signup
$route['directory/forgot_password'] = "directory_guest/forgot_password"; //  forgot password
$route['directory/reset_password/:any'] = "directory_guest/reset_password/:any"; //  forgot password
$route['directory/reset_password_success'] = "directory_guest/reset_password_success"; //  forgot password
$route['directory/signup_success/:any'] = "directory_guest/signup_success"; //  signup
$route['directory/activate'] = "directory_guest/activate"; //  signup
$route['directory/activate/:any'] = "directory_guest/activate/:any"; //  signup
$route['directory/activated'] = "directory_guest/activated"; //  signup
$route['directory/activated/:any'] = "directory_guest/activated/$1"; //  signup
$route['directory/login'] = "directory_guest/login"; // login
$route['directory/logout'] = "directory_guest/logout"; // logout

$route['directory/member_login'] = "directory_guest/member_login";  
$route['directory/reminder'] = "directory_guest/reminder"; 

$route['directory/panel'] = "directory_panel"; // directory panel
$route['directory/panel/index'] = "directory_panel/index"; //  directory panel
$route['directory/panel/login'] = "directory_panel/login"; //  directory panel
$route['directory/panel/company'] = "directory_panel/company"; //  directory panel
$route['directory/panel/branch'] = "directory_panel/branch"; //  directory panel
$route['directory/panel/branch_create'] = "directory_panel/branch_create"; //  directory panel
$route['directory/panel/branch_edit'] = "directory_panel/branch_edit"; //  directory panel
$route['directory/panel/branch_edit/:any'] = "directory_panel/branch_edit/:any"; //  directory panel
$route['directory/panel/branch_delete/:any'] = "directory_panel/branch_delete/:any"; //  directory panel
$route['directory/panel/products'] = "directory_panel/products"; //  directory panel
$route['directory/panel/products/:any'] = "directory_panel/products"; //  directory panel
$route['directory/panel/photo'] = "directory_panel/photo"; //  directory panel
$route['directory/panel/news'] = "directory_panel/news"; //  directory panel
$route['directory/panel/news_create'] = "directory_panel/news_create"; //  directory panel
$route['directory/panel/news_edit'] = "directory_panel/news_edit"; //  directory panel
$route['directory/panel/news_edit/:any'] = "directory_panel/news_edit/:any"; //  directory panel
$route['directory/panel/news_delete/:any'] = "directory_panel/news_delete/:any"; //  directory panel
$route['directory/panel/delete_advert'] = "directory_panel/delete_advert"; //  directory panel
$route['directory/panel/payment'] = "directory_panel/payment"; //  directory panel
$route['directory/panel/payment_bt'] = "directory_panel/payment_bt"; //  directory panel
$route['directory/panel/payment_cc'] = "directory_panel/payment_cc"; //  directory panel
$route['directory/panel/payment_cc_2/:any'] = "directory_panel/payment_cc_2/:any"; //  directory panel

$route['directory/search/:any/pages/:any'] = "directory_guest/index/search/$1/pages/$2"; //  url pada news 
$route['directory/province/:any/services/:any/pages/:any'] = "directory_guest/index/province/$1/services/$2/pages/$3"; //  url pada news
$route['search'] = "landing/search"; //  url pada news 
$route['directory/:any/search/:any'] = "directory_guest/detail/$1/search/$2"; //  url company yang bersangkutan 
$route['directory/:any/province/:any/services/:any'] = "directory_guest/detail/$1/province/$2/services/$3"; //  url company yang bersangkutan 

/*$route['ajax_upload/upload_directory_image/upload/company/network/:any'] = "ajax_upload/upload_directory_image/upload/company/network/$1";

$route['ajax_upload/upload_directory_image/upload/directory_news/network/:any/file/:any'] = "ajax_upload/upload_directory_image/upload/directory_news/network/$1/file/$2";
$route['ajax_upload/upload_directory_image/upload/photo/network/:any/file/:any'] = "ajax_upload/upload_directory_image/upload/photo/network/$1/file/$2";
$route['json_request/get_directory'] = "json_request/get_directory";
$route['json_request/update_directory_photo'] = "json_request/update_directory_photo";*/

/*$route['admin'] = "admin/landing";
$route['admin/landing'] = "admin/landing";
$route['admin/security_directory'] = "admin/security_directory";
$route['admin/security_directory/index/status/inactive'] = "admin/security_directory/index/status/inactive";
$route['json_request/get_directory'] = "json_request/get_directory";*/


//$route['^(?!admin)\S*\/\S*'] = "directory_guest/news/$1/$2";
//$route['^(?!admin)\S*'] = "directory_guest/detail/$1";


#$route[':any/:any'] = "directory_guest/news/$1/$2"; //  url pada news
#$route[':any'] = "directory_guest/detail/$1"; //  url company yang bersangkutan
/* End of file routes.php */
/* Location: ./system/application/config/routes.php */

$route['directory/:any'] = "directory_guest/detail/$1"; //  url company yang bersangkutan


$route['about-us'] = "content/index/about";
$route['dmca'] = "content/index/DMCA/Photo Complaints";

$route['privacy'] = "content/index/privacy";
$route['terms-and-conditions'] = "content/index/term_condition"; 

$route['current-specials'] = "current_specials";
$route['current-special/subscriber'] = "current_specials/subscriber";

$route['2257_exemption'] = "content/index/2257_exemption"; 
$route['disclaimer'] = "content/index/disclaimer-ads";

$route['make-a-payment'] = "make_payment";

$route['make-a-payment/payment'] = "make_payment/payment";

$route['make-a-payment/paymentfail'] = "make_payment/paymentfail";

$route['make-a-payment/paymentsuccess'] = "make_payment/paymentsuccess";

//$route[''] = "content/about";